package furns.service;

import furns.entity.Furn;
import furns.entity.Page;

import java.util.List;

public interface FurnService {
    //显示家具
    public List<Furn> queryFurns();

    //添加家具
    public boolean addFurn(Furn furn);

    //删除一个家居
    public int delFurnById(int id);

    //回显功能
    public Furn queryFurnById(int id);

    //修改功能
    public int updateFurn(Furn furn);


    //封装page对象
    public Page<Furn> page(int pageNo,int pageSize);

    //通过name拿到
    public Page<Furn> getPageByName(int pageNo,int pageSize,String name);
}
